 
#ifndef IPC_H_
#define IPC_H_

#include"../array/array.h"
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define SERVER -1
#define CLIENT 0

typedef struct{
	int size;
	char* text;
} message_t;

int ipc_open(char* filepath, char* argv[]);
int ipc_msg_recive(int from, message_t* message);
int ipc_msg_send(int pid, message_t* message);
void ipc_close();

#endif
